<template>
	<el-card class="form-container">
		<el-form :model="userLevelDetail" label-width="100px">
			<el-form-item label="" prop="id">
				<el-input v-model="userLevelDetail.id" disabled="disabled"></el-input>
			</el-form-item>
			<el-form-item label="等级名称" prop="levelName">
				<el-input v-model="userLevelDetail.levelName" disabled="disabled"></el-input>
			</el-form-item>
			<el-form-item label="等级需要的成长值" prop="growthPoint">
				<el-input v-model="userLevelDetail.growthPoint" disabled="disabled"></el-input>
			</el-form-item>
			<el-form-item label="是否为默认等级 1是 2否" prop="isDefaultLevel">
				<el-input v-model="userLevelDetail.isDefaultLevel" disabled="disabled"></el-input>
			</el-form-item>
			<el-form-item label="免运费标准" prop="freeFreightPoint">
				<el-input v-model="userLevelDetail.freeFreightPoint" disabled="disabled"></el-input>
			</el-form-item>
			<el-form-item label="每次评价获取的成长值" prop="commentGrowthPoint">
				<el-input v-model="userLevelDetail.commentGrowthPoint" disabled="disabled"></el-input>
			</el-form-item>
			<el-form-item label="是否有免邮特权 1是 2否" prop="priviledgeFreeFreight">
				<el-input v-model="userLevelDetail.priviledgeFreeFreight" disabled="disabled"></el-input>
			</el-form-item>
			<el-form-item label="是否有会员价格特权 1是2否" prop="priviledgeMemberPrice">
				<el-input v-model="userLevelDetail.priviledgeMemberPrice" disabled="disabled"></el-input>
			</el-form-item>
			<el-form-item label="是否有生日特权 1是 2否" prop="priviledgeBirthday">
				<el-input v-model="userLevelDetail.priviledgeBirthday" disabled="disabled"></el-input>
			</el-form-item>
			<el-form-item label="备注" prop="note">
				<el-input v-model="userLevelDetail.note" disabled="disabled"></el-input>
			</el-form-item>
			<el-form-item label="修改时间" prop="createTime">
				<el-input v-model="userLevelDetail.createTime" disabled="disabled"></el-input>
			</el-form-item>
			<el-form-item label="更新时间" prop="updateTime">
				<el-input v-model="userLevelDetail.updateTime" disabled="disabled"></el-input>
			</el-form-item>
			<el-form-item>
				<el-button @click="close">关闭</el-button>
			</el-form-item>
		</el-form>
	</el-card>
</template>

<script>
	import { findUserLevelDetail } from '@/api/crm/userLevel'
	export default {
		name: 'view-userLevel',
		data() {
			return {
				userLevelDetail: {}
			}
		},
		created() {
			this.view(this.$route.query.id)
		},
		methods: {
			view(val) {
				findUserLevelDetail(val).then(res => {
					console.log('查询返回结果', res)
					this.userLevelDetail = res.data.responseData
				})
			},
			close() {
				this.$router.go(-1)
			}
		}
	}
</script>

<style>
</style>
